package com.haoliang.spring.component.java.selector;

import org.springframework.context.annotation.ImportSelector;
import org.springframework.core.type.AnnotationMetadata;

/**
 * @Author zhaohaoliang
 * @Date 创建于 下午4:31 2019/3/10
 * @Description 请输入类的描述信息
 */
public class CustomImportSelector implements ImportSelector {
    /**
     *
     * @param importingClassMetadata 当前标注@Import注解的类的所有注解信息
     * @return 导入到容器中的组件全类名
     */
    public String[] selectImports(AnnotationMetadata importingClassMetadata) {
        String[] classNames = new String[]{
                "com.haoliang.spring.component.java.model.GreenModel",
                "com.haoliang.spring.component.java.model.RedModel"
        };
        return classNames;
    }
}
